# $Id: PKGBUILD 85392 2013-03-01 10:38:18Z andrea $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: David Rosenstrauch <darose@darose.net>

pkgname=qps
pkgver=1.10.16
_dlpkgver=5963
pkgrel=2
pkgdesc="a visual process manager, an X11 version of 'top' or 'ps'."
url="http://qps.kldp.net/projects/qps"
depends=('qt4')
arch=('i686' 'x86_64')
license="GPL"
source=(http://kldp.net/frs/download.php/${_dlpkgver}/qps-$pkgver.tar.bz2)
md5sums=('dc3396749ad9254fd60ca84b5c0b16b9')

build() {
  cd $srcdir/$pkgname-$pkgver
  qmake
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  install -D -m 755 qps $pkgdir/usr/bin/qps
  install -D -m 644 qps.1 $pkgdir/usr/share/man/man1/qps.1
  install -D -m 644 qps.desktop $pkgdir/usr/share/applications/qps.desktop
  install -D -m 644 icon/icon.xpm $pkgdir/usr/share/pixmaps/qps.xpm
}
